import api from "./api";
import type Typings from "@/typings";

export default {
  loginApi: (
    data: Typings.Common.plainObj = {},
    config: Typings.Common.plainObj = {}
  ) => {
    const url = "/login";
    return api.post(url, data, { ...config });
  },

  todoInfo: (
    data: Typings.Common.plainObj = {},
    config: Typings.Common.plainObj = {}
  ) => {
    const url = "/todoInfo";
    return api.get(url, data, { ...config });
  },
};
